# $OpenBSD: Makefile,v 1.2 2015/05/22 11:31:14 ajacoutot Exp $

V =		2.0.12
COMMENT =	SDL2 TrueType fonts library
DISTNAME =	SDL2_ttf-${V}
PKGNAME =	sdl2-ttf-${V}
CATEGORIES =	devel graphics fonts
REVISION =	0

SHARED_LIBS +=	SDL2_ttf		0.0 # 10.2

HOMEPAGE =	http://www.libsdl.org/projects/SDL_ttf/
MAINTAINER =	Brian Callahan <bcallah@openbsd.org>

# zlib
PERMIT_PACKAGE_CDROM=   Yes

WANTLIB += SDL2 freetype m pthread sndio usbhid z

MASTER_SITES =	http://www.libsdl.org/projects/SDL_ttf/release/

LIB_DEPENDS =	devel/sdl2

SEPARATE_BUILD =	Yes
CONFIGURE_STYLE =	gnu
CONFIGURE_ARGS =	${CONFIGURE_SHARED}
CONFIGURE_ENV =		CPPFLAGS="-I${LOCALBASE}/include" \
			LDFLAGS="-L${LOCALBASE}/lib"

.include <bsd.port.mk>
